home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / Dialogs / DraftWLD.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  1.2 KB  |  65 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DraftWLD.cpp
  3.  
  4.     Contains:    Implemementation of LDEF for Drafts dialog.
  5.  
  6.     Owned by:    Eric House
  7.  
  8.     Copyright:    © 1994 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <0>     6/7/96    eeh        first checked in (moved from ::DocShell:)
  13.  
  14.     To Do:
  15. */
  16.  
  17. #ifndef __LISTS__
  18. #include <Lists.h>
  19. #endif
  20.  
  21. #ifndef _DRAFTWLD_
  22. #include "DraftWLD.h"
  23. #endif
  24.  
  25. ////////////////////////////////////////////////////////////////////////////////
  26. //
  27. //    Drafts Window LDEF
  28. //
  29. ////////////////////////////////////////////////////////////////////////////////
  30.  
  31.  
  32. pascal void DRAFTWINDOWLDEF( short lMessage, Boolean lSelect, const Rect* lRect,
  33.         Cell lCell, short /*lDataOffset*/, short /*lDataLen*/, ListHandle lHandle )
  34. {
  35.     switch( lMessage )
  36.     {
  37.         case lInitMsg :
  38.         case lCloseMsg :
  39.             return ;
  40.  
  41.         case lDrawMsg :
  42.         case lHiliteMsg :
  43.         {
  44.             if ( lCell.h != 0 )
  45.                 return ;
  46.  
  47.             EraseRect( lRect ) ;
  48.             
  49.             DraftLDEFCallbackInfo* hc =
  50.                     (DraftLDEFCallbackInfo*)(*lHandle)->refCon ;
  51.             (*hc->stringsProc)( hc, lCell.v, lRect );
  52. /*
  53.             if ( lSelect )
  54.             {
  55.                 short oldPenMode = (*lHandle)->port->pnMode;
  56.                 PenMode( hilitetransfermode );
  57.                 PaintRect( lRect ) ;
  58.                 PenMode( oldPenMode );
  59.             }
  60. */
  61.             break ;
  62.         }
  63.     }
  64. }    // DRAFTWINDOWLDEF
  65.